﻿using System.Web.Profile;
using System.Web.Security;

namespace Clarke.Entities
{
	public class ProfileCommon : ProfileBase
	{
		#region Public Methods
		public static ProfileCommon GetProfile(string username)
		{
			return Create(username) as ProfileCommon;
		}

		public static ProfileCommon GetCurrentProfile()
		{
			var user = Membership.GetUser();
			return user == null ? null : Create(user.UserName) as ProfileCommon;
		}
		#endregion

		#region Public properties

		#endregion

		#region Private Methods
		private object GetProperty(string name)
		{
			return this[name];
		}
		#endregion
	}
}
